#ifndef DDC_MATH_H_INCLUDED
#define DDC_MATH_H_INCLUDED

#include "ddc_obj.h"

namespace DDC_Math {
    /**
     * the intersection of [rAa, rAb] and [rBa, rBb].
     *
     */
    DDC_Tuple2 Intersection(DDC_Tuple2 rangeA, DDC_Tuple2 rangeB);

    bool RectIntersect(DDC_FRect rectA, DDC_FRect rectB);
    bool RectIntersect(DDC_Rect rectA, DDC_Rect rectB);

    float RectDistance(DDC_FRect rectA, DDC_FRect rectB);
    float RectDistance(DDC_Rect rectA, DDC_Rect rectB);
}

#endif // DDC_MATH_H_INCLUDED
